<template>
  <div class="search-box">
    <el-row >
  <el-col :span="6"><div class="logo bg-purple">
    <img class="pic" style="vertical-align: middle" src="@/assets/bool.png">
  </div></el-col>
  <el-col :span="12"><div class="grid-content bg-purple">
    <el-form :inline="true" :model="formInline" class="demo-form-inline">
                            <el-form-item>
                                <el-input style="width: 400px" v-model="formInline.user" placeholder="专为疫情而生"></el-input>
                            </el-form-item>
                            <el-form-item>
                                <el-button type="primary" @click="onSubmit">搜索</el-button>
                            </el-form-item>
    </el-form>
  </div></el-col>
  <!-- <el-col :span="6"><div class="grid-content bg-purple">444</div></el-col> -->
</el-row>
  </div>
</template>

<script>
export default {
    name:"SearchBox",
    data() {
        return {
            formInline: {
                user: "",
                region: "",
            },
        };
    },
    methods: {
        onSubmit() {
            console.log("submit!");
        },
    },

}
</script>

<style>
.pic{
    height: 100px;
}
.el-row {
    margin-bottom: 20px;
    /* &:last-child {
      margin-bottom: 0;
    } */
  }
  .el-col {
    border-radius: 4px;
  }
  /* .bg-purple { */
    /* background: #d3dce6; */
  /* } */
  .grid-content {
    border-radius: 4px;
    max-height: 100px;

  }
  .el-form{
    padding:25px
  }
  /* 想要圆角但是不行。。。算了 */
  :deep(.el-input){
    background-color: transparent;/*覆盖原背景颜色，设置成透明 */
    border-radius: 95px;
    border: 0;
    box-shadow: 0 0 0 0px;
    /* border-radius: 95px; */
  }
</style>